/*
 * Copyright (c) 2023 Cshoo Org. All Rights Reserved.
 */

package org.tattoo.workflow.domain.po;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.cshoo.tattoo.embed.infra.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author 杨翼
 * @since 1.0
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "process_record")
@Data
public class ProcessRecord extends BaseEntity {

    /**
     * 采购订单id
     */
    @Column(name = "procurement_order_id")
    private Long procurementOrderId;

    /**
     * 操作人
     */
    @Column(name = "handler")
    private String handler;

    /**
     * 操作选项
     */
    @Column(name = "operate")
    private Integer operate;

    /**
     * 当前状态
     */
    @Column(name = "status")
    private Integer status;

    /**
     * （审批）意见
     */
    @Column(name = "content")
    private String content;
}
